package com.qinghuan.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Auther: qinghuan
 * @Date: 2022/3/20 17:25
 * @Description:
 */
@Controller
public class HelloController {

    /**
     *  "/" --> /WEB-INF/templates/index.html
     */

    /**
     * 请求映射
     *
     * @return
     */
    @RequestMapping(value = "/")
    public String index() {
        //返回视图名称
        return "index";
    }

    @RequestMapping("/target")
    public String toTarget() {
        return "target";
    }

}
